package com.itheima.tanhua.server.holder;

/**
 * @author itheima
 * @since 2022-01-14
 */
public class TokenHolder {
    private static ThreadLocal<String> tl = new ThreadLocal<>();

    public static String get() {
        return tl.get();
    }

    public static void set(String value) {
        tl.set(value);
    }

    public static void remove() {
        tl.remove();
    }
}
